home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsNetCID.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  30KB  |  750 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Darin Fisher <darin@netscape.com> (original author)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #ifndef nsNetCID_h__
  40. #define nsNetCID_h__
  41.  
  42.  
  43. /******************************************************************************
  44.  * netwerk/base/ classes
  45.  */
  46.  
  47. // service implementing nsIIOService.
  48. #define NS_IOSERVICE_CLASSNAME \
  49.     "nsIOService"
  50. #define NS_IOSERVICE_CONTRACTID \
  51.     "@mozilla.org/network/io-service;1"
  52. #define NS_IOSERVICE_CID                             \
  53. { /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */         \
  54.     0x9ac9e770,                                      \
  55.     0x18bc,                                          \
  56.     0x11d3,                                          \
  57.     {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
  58. }
  59.  
  60. // service implementing nsINetUtil
  61. #define NS_NETUTIL_CONTRACTID \
  62.     "@mozilla.org/network/util;1"
  63.  
  64. // service implementing nsIEventTarget.  events dispatched to this event
  65. // target will be executed on one of necko's background i/o threads.
  66. #define NS_IOTHREADPOOL_CLASSNAME \
  67.     "nsIOThreadPool"
  68. #define NS_IOTHREADPOOL_CONTRACTID \
  69.     "@mozilla.org/network/io-thread-pool;1"
  70. #define NS_IOTHREADPOOL_CID                          \
  71. { /* f1d62b49-5051-48e2-9155-c3509428461e */         \
  72.     0xf1d62b49,                                      \
  73.     0x5051,                                          \
  74.     0x48e2,                                          \
  75.     {0x91, 0x55, 0xc3, 0x50, 0x94, 0x28, 0x46, 0x1e} \
  76. }
  77.  
  78. // service implementing nsIProtocolProxyService and nsPIProtocolProxyService.
  79. #define NS_PROTOCOLPROXYSERVICE_CLASSNAME \
  80.     "nsProtocolProxyService"
  81. #define NS_PROTOCOLPROXYSERVICE_CONTRACTID \
  82.     "@mozilla.org/network/protocol-proxy-service;1"
  83. #define NS_PROTOCOLPROXYSERVICE_CID                  \
  84. { /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */         \
  85.     0xe9b301c0,                                      \
  86.     0xe0e4,                                          \
  87.     0x11d3,                                          \
  88.     {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44}   \
  89. }
  90.  
  91. // service implementing nsIProxyAutoConfig.
  92. #define NS_PROXYAUTOCONFIG_CLASSNAME \
  93.     "nsProxyAutoConfig"
  94. #define NS_PROXYAUTOCONFIG_CONTRACTID \
  95.     "@mozilla.org/network/proxy-auto-config;1" 
  96. #define NS_PROXYAUTOCONFIG_CID                       \
  97. { /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */         \
  98.     0x63ac8c66,                                      \
  99.     0x1dd2,                                          \
  100.     0x11b2,                                          \
  101.     {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \
  102. }
  103.  
  104. // component implementing nsILoadGroup.
  105. #define NS_LOADGROUP_CLASSNAME \
  106.     "nsLoadGroup"
  107. #define NS_LOADGROUP_CONTRACTID \
  108.     "@mozilla.org/network/load-group;1"
  109. #define NS_LOADGROUP_CID                             \
  110. { /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */         \
  111.     0xe1c61582,                                      \
  112.     0x2a84,                                          \
  113.     0x11d3,                                          \
  114.     {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  115. }
  116.  
  117. // component implementing nsIURI, nsISerializable, and nsIClassInfo.
  118. #define NS_SIMPLEURI_CLASSNAME \
  119.     "nsSimpleURI"
  120. #define NS_SIMPLEURI_CONTRACTID \
  121.     "@mozilla.org/network/simple-uri;1"
  122. #define NS_SIMPLEURI_CID                              \
  123. { /* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */          \
  124.      0xe0da1d70,                                      \
  125.      0x2f7b,                                          \
  126.      0x11d3,                                          \
  127.      {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  128. }
  129.  
  130. // component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable,
  131. // and nsIClassInfo.
  132. #define NS_STANDARDURL_CLASSNAME \
  133.     "nsStandardURL"
  134. #define NS_STANDARDURL_CONTRACTID \
  135.     "@mozilla.org/network/standard-url;1"
  136. #define NS_STANDARDURL_CID                           \
  137. { /* de9472d0-8034-11d3-9399-00104ba0fd40 */         \
  138.     0xde9472d0,                                      \
  139.     0x8034,                                          \
  140.     0x11d3,                                          \
  141.     {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
  142. }
  143.  
  144. // service implementing nsIURLParser that assumes the URL will NOT contain an
  145. // authority section.
  146. #define NS_NOAUTHURLPARSER_CLASSNAME \
  147.     "nsNoAuthURLParser"
  148. #define NS_NOAUTHURLPARSER_CONTRACTID \
  149.     "@mozilla.org/network/url-parser;1?auth=no"
  150. #define NS_NOAUTHURLPARSER_CID                       \
  151. { /* 78804a84-8173-42b6-bb94-789f0816a810 */         \
  152.     0x78804a84,                                      \
  153.     0x8173,                                          \
  154.     0x42b6,                                          \
  155.     {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10} \
  156. }
  157.  
  158. // service implementing nsIURLParser that assumes the URL will contain an
  159. // authority section.
  160. #define NS_AUTHURLPARSER_CLASSNAME \
  161.     "nsAuthURLParser"
  162. #define NS_AUTHURLPARSER_CONTRACTID \
  163.     "@mozilla.org/network/url-parser;1?auth=yes"
  164. #define NS_AUTHURLPARSER_CID                         \
  165. { /* 275d800e-3f60-4896-adb7-d7f390ce0e42 */         \
  166.     0x275d800e,                                      \
  167.     0x3f60,                                          \
  168.     0x4896,                                          \
  169.     {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42} \
  170. }
  171.  
  172. // service implementing nsIURLParser that does not make any assumptions about
  173. // whether or not the URL contains an authority section.
  174. #define NS_STDURLPARSER_CLASSNAME \
  175.     "nsStdURLParser"
  176. #define NS_STDURLPARSER_CONTRACTID \
  177.     "@mozilla.org/network/url-parser;1?auth=maybe"
  178. #define NS_STDURLPARSER_CID                          \
  179. { /* ff41913b-546a-4bff-9201-dc9b2c032eba */         \
  180.     0xff41913b,                                      \
  181.     0x546a,                                          \
  182.     0x4bff,                                          \
  183.     {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba} \
  184. }
  185.  
  186. // component implementing nsIRequestObserverProxy.
  187. #define NS_REQUESTOBSERVERPROXY_CLASSNAME \
  188.     "nsRequestObserverProxy"
  189. #define NS_REQUESTOBSERVERPROXY_CONTRACTID \
  190.     "@mozilla.org/network/request-observer-proxy;1"
  191. #define NS_REQUESTOBSERVERPROXY_CID                  \
  192. { /* 51fa28c7-74c0-4b85-9c46-d03faa7b696b */         \
  193.     0x51fa28c7,                                      \
  194.     0x74c0,                                          \
  195.     0x4b85,                                          \
  196.     {0x9c, 0x46, 0xd0, 0x3f, 0xaa, 0x7b, 0x69, 0x6b} \
  197. }
  198.  
  199. // component implementing nsISimpleStreamListener.
  200. #define NS_SIMPLESTREAMLISTENER_CLASSNAME \
  201.     "nsSimpleStreamListener"
  202. #define NS_SIMPLESTREAMLISTENER_CONTRACTID \
  203.     "@mozilla.org/network/simple-stream-listener;1"
  204. #define NS_SIMPLESTREAMLISTENER_CID                  \
  205. { /* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */         \
  206.     0xfb8cbf4e,                                      \
  207.     0x4701,                                          \
  208.     0x4ba1,                                          \
  209.     {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67} \
  210. }
  211.  
  212. // DEPRECATED component implementing nsIAsyncStreamListener.
  213. #define NS_ASYNCSTREAMLISTENER_CLASSNAME \
  214.     "nsAsyncStreamListener"
  215. #define NS_ASYNCSTREAMLISTENER_CONTRACTID \
  216.     "@mozilla.org/network/async-stream-listener;1"
  217. #define NS_ASYNCSTREAMLISTENER_CID                   \
  218. { /* 60047bb2-91c0-11d3-8cd9-0060b0fc14a3 */         \
  219.     0x60047bb2,                                      \
  220.     0x91c0,                                          \
  221.     0x11d3,                                          \
  222.     {0x8c, 0xd9, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  223. }
  224.  
  225. // component implementing nsIStreamListenerTee.
  226. #define NS_STREAMLISTENERTEE_CLASSNAME \
  227.     "nsStreamListenerTee"
  228. #define NS_STREAMLISTENERTEE_CONTRACTID \
  229.     "@mozilla.org/network/stream-listener-tee;1"
  230. #define NS_STREAMLISTENERTEE_CID                     \
  231. { /* 831f8f13-7aa8-485f-b02e-77c881cc5773 */         \
  232.     0x831f8f13,                                      \
  233.     0x7aa8,                                          \
  234.     0x485f,                                          \
  235.     {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73} \
  236. }
  237.  
  238. // component implementing nsIAsyncStreamCopier.
  239. #define NS_ASYNCSTREAMCOPIER_CLASSNAME \
  240.     "nsAsyncStreamCopier"
  241. #define NS_ASYNCSTREAMCOPIER_CONTRACTID \
  242.     "@mozilla.org/network/async-stream-copier;1"
  243. #define NS_ASYNCSTREAMCOPIER_CID                     \
  244. { /* e746a8b1-c97a-4fc5-baa4-66607521bd08 */         \
  245.     0xe746a8b1,                                      \
  246.     0xc97a,                                          \
  247.     0x4fc5,                                          \
  248.     {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08} \
  249. }
  250.  
  251. // component implementing nsIInputStreamPump.
  252. #define NS_INPUTSTREAMPUMP_CLASSNAME \
  253.     "nsInputStreamPump"
  254. #define NS_INPUTSTREAMPUMP_CONTRACTID \
  255.     "@mozilla.org/network/input-stream-pump;1"
  256. #define NS_INPUTSTREAMPUMP_CID                       \
  257. { /* ccd0e960-7947-4635-b70e-4c661b63d675 */         \
  258.     0xccd0e960,                                      \
  259.     0x7947,                                          \
  260.     0x4635,                                          \
  261.     {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75} \
  262. }
  263.  
  264. // component implementing nsIInputStreamChannel.
  265. #define NS_INPUTSTREAMCHANNEL_CLASSNAME \
  266.     "nsInputStreamChannel"
  267. #define NS_INPUTSTREAMCHANNEL_CONTRACTID \
  268.     "@mozilla.org/network/input-stream-channel;1"
  269. #define NS_INPUTSTREAMCHANNEL_CID                    \
  270. { /* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */         \
  271.     0x6ddb050c,                                      \
  272.     0x0d04,                                          \
  273.     0x11d4,                                          \
  274.     {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \
  275. }
  276.  
  277. // component implementing nsIStreamLoader.
  278. #define NS_STREAMLOADER_CLASSNAME \
  279.     "nsStreamLoader"
  280. #define NS_STREAMLOADER_CONTRACTID \
  281.     "@mozilla.org/network/stream-loader;1"
  282. #define NS_STREAMLOADER_CID \
  283. { /* 5BA6D920-D4E9-11d3-A1A5-0050041CAF44 */         \
  284.     0x5ba6d920,                                      \
  285.     0xd4e9,                                          \
  286.     0x11d3,                                          \
  287.     { 0xa1, 0xa5, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } \
  288. }
  289.  
  290. // component implementing nsIUnicharStreamLoader.
  291. #define NS_UNICHARSTREAMLOADER_CLASSNAME \
  292.     "nsUnicharStreamLoader"
  293. #define NS_UNICHARSTREAMLOADER_CONTRACTID \
  294.     "@mozilla.org/network/unichar-stream-loader;1"
  295. #define NS_UNICHARSTREAMLOADER_CID \
  296. { /* 9445791f-fa4c-4669-b174-df5032bb67b3 */           \
  297.     0x9445791f,                                        \
  298.     0xfa4c,                                            \
  299.     0x4669,                                            \
  300.     { 0xb1, 0x74, 0xdf, 0x50, 0x32, 0xbb, 0x67, 0xb3 } \
  301. }
  302.  
  303. // component implementing nsIDownloader.
  304. #define NS_DOWNLOADER_CLASSNAME \
  305.     "nsDownloader"
  306. #define NS_DOWNLOADER_CONTRACTID \
  307.     "@mozilla.org/network/downloader;1"
  308. #define NS_DOWNLOADER_CID \
  309. { /* 510a86bb-6019-4ed1-bb4f-965cffd23ece */         \
  310.     0x510a86bb,                                      \
  311.     0x6019,                                          \
  312.     0x4ed1,                                          \
  313.     {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \
  314. }
  315.  
  316. // component implementing nsISyncStreamListener.
  317. #define NS_SYNCSTREAMLISTENER_CLASSNAME \
  318.     "nsSyncStreamListener"
  319. #define NS_SYNCSTREAMLISTENER_CONTRACTID \
  320.     "@mozilla.org/network/sync-stream-listener;1"
  321. #define NS_SYNCSTREAMLISTENER_CID \
  322. { /* 439400d3-6f23-43db-8b06-8aafe1869bd8 */         \
  323.     0x439400d3,                                      \
  324.     0x6f23,                                          \
  325.     0x43db,                                          \
  326.     {0x8b, 0x06, 0x8a, 0xaf, 0xe1, 0x86, 0x9b, 0xd8} \
  327. }
  328.  
  329. // component implementing nsIURIChecker.
  330. #define NS_URICHECKER_CLASSNAME \
  331.     "nsURIChecker"
  332. #define NS_URICHECKER_CONTRACT_ID \
  333.     "@mozilla.org/network/urichecker;1"
  334. #define NS_URICHECKER_CID \
  335. { /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */         \
  336.     0xcf3a0e06,                                      \
  337.     0x1dd1,                                          \
  338.     0x11b2,                                          \
  339.     {0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \
  340. }
  341.  
  342. // component implementing nsIIncrementalDownload.
  343. #define NS_INCREMENTALDOWNLOAD_CONTRACTID \
  344.     "@mozilla.org/network/incremental-download;1"
  345.  
  346. // service implementing nsIStreamTransportService
  347. #define NS_STREAMTRANSPORTSERVICE_CLASSNAME \
  348.     "nsStreamTransportService"
  349. #define NS_STREAMTRANSPORTSERVICE_CONTRACTID \
  350.     "@mozilla.org/network/stream-transport-service;1"
  351. #define NS_STREAMTRANSPORTSERVICE_CID \
  352. { /* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */         \
  353.     0x0885d4f8,                                      \
  354.     0xf7b8,                                          \
  355.     0x4cda,                                          \
  356.     {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e} \
  357. }
  358.  
  359. // service implementing nsISocketTransportService
  360. #define NS_SOCKETTRANSPORTSERVICE_CLASSNAME \
  361.     "nsSocketTransportService"
  362. #define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \
  363.     "@mozilla.org/network/socket-transport-service;1"
  364. #define NS_SOCKETTRANSPORTSERVICE_CID                \
  365. { /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */         \
  366.     0xc07e81e0,                                      \
  367.     0xef12,                                          \
  368.     0x11d2,                                          \
  369.     {0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \
  370. }
  371.  
  372. // component implementing nsIServerSocket
  373. #define NS_SERVERSOCKET_CLASSNAME \
  374.     "nsServerSocket"
  375. #define NS_SERVERSOCKET_CONTRACTID \
  376.     "@mozilla.org/network/server-socket;1"
  377. #define NS_SERVERSOCKET_CID                          \
  378. { /* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */         \
  379.     0x2ec62893,                                      \
  380.     0x3b35,                                          \
  381.     0x48fa,                                          \
  382.     {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08} \
  383. }
  384.  
  385. #define NS_LOCALFILEINPUTSTREAM_CLASSNAME \
  386.     "nsFileInputStream"
  387. #define NS_LOCALFILEINPUTSTREAM_CONTRACTID \
  388.     "@mozilla.org/network/file-input-stream;1"
  389. #define NS_LOCALFILEINPUTSTREAM_CID                  \
  390. { /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */         \
  391.     0xbe9a53ae,                                      \
  392.     0xc7e9,                                          \
  393.     0x11d3,                                          \
  394.     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  395. }
  396.  
  397. #define NS_LOCALFILEOUTPUTSTREAM_CLASSNAME \
  398.     "nsFileOutputStream"
  399. #define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \
  400.     "@mozilla.org/network/file-output-stream;1"
  401. #define NS_LOCALFILEOUTPUTSTREAM_CID                 \
  402. { /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */         \
  403.     0xc272fee0,                                      \
  404.     0xc7e9,                                          \
  405.     0x11d3,                                          \
  406.     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  407. }
  408.  
  409. #define NS_BUFFEREDINPUTSTREAM_CLASSNAME \
  410.     "nsBufferedInputStream"
  411. #define NS_BUFFEREDINPUTSTREAM_CONTRACTID \
  412.     "@mozilla.org/network/buffered-input-stream;1"
  413. #define NS_BUFFEREDINPUTSTREAM_CID                   \
  414. { /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */         \
  415.     0x9226888e,                                      \
  416.     0xda08,                                          \
  417.     0x11d3,                                          \
  418.     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  419. }
  420.  
  421. #define NS_BUFFEREDOUTPUTSTREAM_CLASSNAME \
  422.     "nsBufferedOutputStream"
  423. #define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \
  424.     "@mozilla.org/network/buffered-output-stream;1"
  425. #define NS_BUFFEREDOUTPUTSTREAM_CID                  \
  426. { /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */         \
  427.     0x9868b4ce,                                      \
  428.     0xda08,                                          \
  429.     0x11d3,                                          \
  430.     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  431. }
  432.  
  433. // component implementing nsISafeOutputStream
  434. #define NS_SAFELOCALFILEOUTPUTSTREAM_CLASSNAME \
  435.     "nsSafeFileOutputStream"
  436. #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \
  437.     "@mozilla.org/network/safe-file-output-stream;1"
  438. #define NS_SAFELOCALFILEOUTPUTSTREAM_CID             \
  439. { /* a181af0d-68b8-4308-94db-d4f859058215 */         \
  440.     0xa181af0d,                                      \
  441.     0x68b8,                                          \
  442.     0x4308,                                          \
  443.     {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \
  444. }
  445.  
  446. // component implementing nsIPrompt
  447. //
  448. // NOTE: this implementation does not have any way to correctly parent itself,
  449. //       it is almost always wrong to get a prompt via this interface.
  450. //       use nsIWindowWatcher instead whenever possible.
  451. //
  452. #define NS_DEFAULTPROMPT_CONTRACTID \
  453.     "@mozilla.org/network/default-prompt;1"
  454.  
  455. // component implementing nsIAuthPrompt
  456. //
  457. // NOTE: this implementation does not have any way to correctly parent itself,
  458. //       it is almost always wrong to get an auth prompt via this interface.
  459. //       use nsIWindowWatcher instead whenever possible.
  460. //
  461. #define NS_DEFAULTAUTHPROMPT_CONTRACTID \
  462.     "@mozilla.org/network/default-auth-prompt;1"
  463.  
  464. /******************************************************************************
  465.  * netwerk/cache/ classes
  466.  */
  467.  
  468. // service implementing nsICacheService.
  469. #define NS_CACHESERVICE_CLASSNAME \
  470.     "nsCacheService"
  471. #define NS_CACHESERVICE_CONTRACTID \
  472.     "@mozilla.org/network/cache-service;1"
  473. #define NS_CACHESERVICE_CID                          \
  474. { /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */         \
  475.     0x6c84aec9,                                      \
  476.     0x29a5,                                          \
  477.     0x4264,                                          \
  478.     {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \
  479. }
  480.  
  481.  
  482. /******************************************************************************
  483.  * netwerk/protocol/http/ classes
  484.  */
  485.  
  486. #define NS_HTTPPROTOCOLHANDLER_CID \
  487. { /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */         \
  488.     0x4f47e42e,                                      \
  489.     0x4d23,                                          \
  490.     0x4dd3,                                          \
  491.     {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \
  492. }
  493.  
  494. #define NS_HTTPSPROTOCOLHANDLER_CID \
  495. { /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */         \
  496.     0xdccbe7e4,                                      \
  497.     0x7750,                                          \
  498.     0x466b,                                          \
  499.     {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \
  500. }
  501.  
  502. #define NS_HTTPBASICAUTH_CID \
  503. { /* fca3766a-434a-4ae7-83cf-0909e18a093a */         \
  504.     0xfca3766a,                                      \
  505.     0x434a,                                          \
  506.     0x4ae7,                                          \
  507.     {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \
  508. }
  509.  
  510. #define NS_HTTPDIGESTAUTH_CID \
  511. { /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */         \
  512.     0x17491ba4,                                      \
  513.     0x1dd2,                                          \
  514.     0x11b2,                                          \
  515.     {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \
  516. }
  517.  
  518. #define NS_HTTPNTLMAUTH_CID \
  519. { /* bbef8185-c628-4cc1-b53e-e61e74c2451a */         \
  520.     0xbbef8185,                                      \
  521.     0xc628,                                          \
  522.     0x4cc1,                                          \
  523.     {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \
  524. }
  525.  
  526. #define NS_HTTPAUTHMANAGER_CLASSNAME \
  527.     "nsHttpAuthManager"
  528. #define NS_HTTPAUTHMANAGER_CONTRACTID \
  529.     "@mozilla.org/network/http-auth-manager;1"
  530. #define NS_HTTPAUTHMANAGER_CID \
  531. { /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */         \
  532.     0x36b63ef3,                                      \
  533.     0xe0fa,                                          \
  534.     0x4c49,                                          \
  535.     {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \
  536. }
  537.  
  538. /******************************************************************************
  539.  * netwerk/protocol/ftp/ classes
  540.  */
  541.  
  542. #define NS_FTPPROTOCOLHANDLER_CLASSNAME \
  543.     "nsFtpProtocolHandler"
  544. #define NS_FTPPROTOCOLHANDLER_CID \
  545. { /* 25029490-F132-11d2-9588-00805F369F95 */         \
  546.     0x25029490,                                      \
  547.     0xf132,                                          \
  548.     0x11d2,                                          \
  549.     {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95}  \
  550. }
  551.  
  552. /******************************************************************************
  553.  * netwerk/protocol/res/ classes
  554.  */
  555.  
  556. #define NS_RESPROTOCOLHANDLER_CLASSNAME \
  557.     "nsResProtocolHandler"
  558. #define NS_RESPROTOCOLHANDLER_CID                    \
  559. { /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */         \
  560.     0xe64f152a,                                      \
  561.     0x9f07,                                          \
  562.     0x11d3,                                          \
  563.     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  564. }
  565.  
  566. #define NS_RESURL_CLASSNAME \
  567.     "nsResURL"
  568. #define NS_RESURL_CID                    \
  569. { /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */         \
  570.     0xff8fe7ec,                                      \
  571.     0x2f74,                                          \
  572.     0x4408,                                          \
  573.     {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \
  574. }
  575.  
  576.  
  577. /******************************************************************************
  578.  * netwerk/protocol/file/ classes
  579.  */
  580.  
  581. #define NS_FILEPROTOCOLHANDLER_CLASSNAME \
  582.     "nsFileProtocolHandler"
  583. #define NS_FILEPROTOCOLHANDLER_CID                   \
  584. { /* fbc81170-1f69-11d3-9344-00104ba0fd40 */         \
  585.     0xfbc81170,                                      \
  586.     0x1f69,                                          \
  587.     0x11d3,                                          \
  588.     {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
  589. }
  590.  
  591. /******************************************************************************
  592.  * netwerk/protocol/data/ classes
  593.  */
  594.  
  595. #define NS_DATAPROTOCOLHANDLER_CLASSNAME \
  596.     "nsDataProtocolHandler"
  597. #define NS_DATAPROTOCOLHANDLER_CID                   \
  598. { /* {B6ED3030-6183-11d3-A178-0050041CAF44} */       \
  599.     0xb6ed3030,                                      \
  600.     0x6183,                                          \
  601.     0x11d3,                                          \
  602.     {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
  603. }
  604.  
  605. /******************************************************************************
  606.  * netwerk/protocol/viewsource/ classes
  607.  */
  608.  
  609. // service implementing nsIProtocolHandler
  610. #define NS_VIEWSOURCEHANDLER_CID                     \
  611. { /* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */     \
  612.     0x9c7ec5d1,                                      \
  613.     0x23f9,                                          \
  614.     0x11d5,                                          \
  615.     {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f} \
  616. }
  617.  
  618. /******************************************************************************
  619.  * netwerk/dns/ classes
  620.  */
  621.  
  622. #define NS_DNSSERVICE_CLASSNAME \
  623.     "nsDNSService"
  624. #define NS_DNSSERVICE_CONTRACTID \
  625.     "@mozilla.org/network/dns-service;1"
  626. #define NS_DNSSERVICE_CID \
  627. { /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */         \
  628.     0xb0ff4572,                                      \
  629.     0xdae4,                                          \
  630.     0x4bef,                                          \
  631.     {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \
  632. }
  633.  
  634. #define NS_IDNSERVICE_CLASSNAME \
  635.     "nsIDNService"
  636. /* ContractID of the XPCOM package that implements nsIIDNService */
  637. #define NS_IDNSERVICE_CONTRACTID \
  638.     "@mozilla.org/network/idn-service;1"
  639. #define NS_IDNSERVICE_CID \
  640. { /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */         \
  641.     0x62b778a6,                                      \
  642.     0xbce3,                                          \
  643.     0x456b,                                          \
  644.     {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \
  645. }
  646.  
  647. /******************************************************************************
  648.  * netwerk/mime classes
  649.  */
  650.  
  651. #define NS_MIMEHEADERPARAM_CLASSNAME \
  652.     "nsMIMEHeaderParamImpl"
  653. // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A} 
  654. #define NS_MIMEHEADERPARAM_CID                         \
  655. {   0x1f4dbcf7,                                        \
  656.     0x245c,                                            \
  657.     0x4c8c,                                            \
  658.     { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \
  659. }
  660.  
  661. #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1"
  662.  
  663.  
  664. /******************************************************************************
  665.  * netwerk/socket classes
  666.  */
  667.  
  668. #define NS_SOCKETPROVIDERSERVICE_CLASSNAME \
  669.     "nsSocketProviderService"
  670. #define NS_SOCKETPROVIDERSERVICE_CONTRACTID \
  671.     "@mozilla.org/network/socket-provider-service;1"
  672. #define NS_SOCKETPROVIDERSERVICE_CID                   \
  673. { /* ed394ba0-5472-11d3-bbc8-0000861d1237 */           \
  674.     0xed394ba0,                                        \
  675.     0x5472,                                            \
  676.     0x11d3,                                            \
  677.     { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \
  678. }
  679.  
  680. #define NS_SOCKSSOCKETPROVIDER_CID                     \
  681. { /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */           \
  682.     0x8dbe7246,                                        \
  683.     0x1dd2,                                            \
  684.     0x11b2,                                            \
  685.     { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \
  686. }
  687.  
  688. #define NS_SOCKS4SOCKETPROVIDER_CID                    \
  689. { /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */           \
  690.     0xf7c9f5f4,                                        \
  691.     0x4451,                                            \
  692.     0x41c3,                                            \
  693.     { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \
  694. }
  695.  
  696. #define NS_SSLSOCKETPROVIDER_CONTRACTID \
  697.     NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl"
  698.  
  699. /* This code produces a normal socket which can be used to initiate the
  700.  * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS()
  701.  */
  702. #define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \
  703.     NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls"
  704.  
  705.  
  706. /******************************************************************************
  707.  * netwerk/cookie classes
  708.  */
  709.  
  710. // service implementing nsICookieManager and nsICookieManager2.
  711. #define NS_COOKIEMANAGER_CLASSNAME \
  712.     "CookieManager"
  713. #define NS_COOKIEMANAGER_CONTRACTID \
  714.     "@mozilla.org/cookiemanager;1"
  715. #define NS_COOKIEMANAGER_CID                           \
  716. { /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */           \
  717.     0xaaab6710,                                        \
  718.     0x0f2c,                                            \
  719.     0x11d5,                                            \
  720.     { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
  721. }
  722.  
  723. // service implementing nsICookieService.
  724. #define NS_COOKIESERVICE_CLASSNAME \
  725.     "CookieService"
  726. #define NS_COOKIESERVICE_CONTRACTID \
  727.     "@mozilla.org/cookieService;1"
  728. #define NS_COOKIESERVICE_CID                           \
  729. { /* c375fa80-150f-11d6-a618-0010a401eb10 */           \
  730.     0xc375fa80,                                        \
  731.     0x150f,                                            \
  732.     0x11d6,                                            \
  733.     { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
  734. }
  735.  
  736. /******************************************************************************
  737.  * netwerk/streamconv classes
  738.  */
  739.  
  740. // service implementing nsIStreamConverterService
  741. #define NS_STREAMCONVERTERSERVICE_CID                \
  742. { /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */         \
  743.     0x892ffeb0,                                      \
  744.     0x3f80,                                          \
  745.     0x11d3,                                          \
  746.     {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
  747. }
  748.  
  749. #endif // nsNetCID_h__
  750.